package org.ohos.rajawali3d.examples.examples;

import ohos.agp.window.dialog.CommonDialog;
import ohos.app.Context;

public class ExceptionDialog extends CommonDialog {

    private static final String BUNDLE_KEY_TITLE = "ExceptionDialog.BUNDLE_KEY_TITLE";
    private static final String BUNDLE_KEY_MESSAGE = "ExceptionDialog.BUNDLE_KEY_MESSAGE";
    public static final String TAG = "ExceptionDialog.TAG";

    public ExceptionDialog(Context context) {
        super(context);
    }

    public static ExceptionDialog newInstance(Context context, String title, String message) {
        ExceptionDialog exceptionDialog = new ExceptionDialog(context);
        exceptionDialog.setTitleText(title);
        exceptionDialog.setContentText(message);
        exceptionDialog.setSwipeToDismiss(false);
        return exceptionDialog;
    }

}
